const list = () => import('@/views/knowledgeBase/knowledge/list.vue')
const search = () => import('@/views/knowledgeBase/knowledge/search.vue')
const detail = () => import('@/views/knowledgeBase/knowledge/detail.vue')
const audit = () => import('@/views/knowledgeBase/knowledge/audit.vue')
const tree = () => import('@/views/knowledgeBase/knowledgeType/tree.vue')
const Layout = () => import('@/layout/index.vue')

export default [
  {
    path: '/knowledgeBase',
    component: Layout,
    redirect: '/knowledgeBase/knowledge/list',
    name: '知识管理',
    meta: {
      title: '知识管理',
    },
    icon: 'Reading',
    children: [
      {
        path: 'knowledge/list',
        name: '知识管理',
        component: list,
        meta: {
          title: '知识管理',
        },
      },
      {
        path: 'knowledge/detail/:id',
        name: '知识详情',
        component: detail,
        hidden: true,
        meta: {
          title: '知识详情',
        },
      },
      {
        path: 'knowledge/audit',
        name: '审核知识',
        component: audit,
        meta: {
          title: '审核知识',
        },
      },
      {
        path: 'knowledgeType/tree',
        name: '知识分类管理',
        component: tree,
        meta: {
          title: '知识分类管理',
        },
      },
      {
        path: 'knowledge/search',
        name: '知识检索',
        component: search,
        meta: {
          title: '知识检索',
        },
      },
    ],
  },
]
